Repository navigation
feat(studio): 全部类型 All types ends the 高级 fold, and the type directory lists every type a package could hold - #37380
objectstack-fleet[bot] wants to merge 3 commits into
Conversation
…y lists every type of the six groups The fold's last row, under no group, opens the area's type directory. On a package the directory now lists the types the package holds as before and, after them, every other type of the menu's six groups, marked "None yet" with the state word for what can be done there. The fold's own rule is unchanged. ADR-0084 gains the dated amendment line. Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ Co-Authored-By: Claude <noreply@anthropic.com>
…ory lists its not-held types Two pins written before the row existed are rewritten on purpose: the area's root is now the current page of 全部类型 All types, and a package that holds none of the served types lists each as held by none yet instead of "No matches". Adds the changeset. Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
| Mutation | Result |
|---|---|
A · the row's render in the fold becomes {null} |
red, 3 of 28: Unable to find an element by: [data-testid="studio-menu-entry-allTypes"] |
B · directoryNotHeldEntries returns [] |
red, 5 of 8: expected [ 'hook', 'object' ] to deeply equal [ Array(5) ] |
C · a not-held tile links to . |
red, 1 of 8: the tile's href assertion |
D · the menu's always becomes every served type |
red, 3 of 28: expected … to be null on type:email_template |
F (mine) · the !diagError guard removed |
red, 1 of 8: the failed-sweep control |
| G (mine) · the row drawn before the fold's groups | red, 1 of 28: the last-row assertion |
| H (mine) · no tile is told it is not held | red, 2 of 21: the mark, and the rewritten kernel case |
| I (mine) · the directory is no entry's page again | red, 3 of 69: the model pin, the rendered pin and the rewritten StudioDesignSurface.metadataArea-28561 case |
| E (mine) · not-held before held | green, 21 of 21 — N1 |
4 · Accepted deviations
- Files beyond the claim's surface, each justified.
StudioPaletteGroups.tsx: one icon row, required becauseENTRY_ICONSis aRecordover every entry kind (the palette draws only the menu's groups, so it shows nothing new).StudioDesignSurface.metadataArea-28561.test.tsx: "no link is current at the directory" became "the current link isstudio-menu-entry-allTypes" — the ruling makes the directory an entry's page, andgetByRolestill fails on zero or on two current links, so nothing was lost.metadataAreaHost.scope-28561.test.tsx: the kernel package's directory read "No matches" and now listsflowas not held, with the href scoped to the kernel package and the URL unrepaired — the fixture hasflowheld by two other packages, so a scope leak would drop the mark or change the href; the old pin's intent is kept. Both rewrites are marked in place with what they read before. - Construction tier (the seat's, not the diff's):
dispatch-gates.mjs --tierprints MANDATORY fordocs/adr/**, with no one-line exit, and the claim readsmodel: TIER_DEFAULT,effort: high, with no exit reason. The compensating control is the at-tier contract review on this head.execution-duties.mdalso keepsdocs/adr/**out of an implementation card's file surface; here the ruled line rides with its implementation. overlap-checkwas run by the dev once, on the final head. Re-read here:git merge-treeof the head is clean againstorigin/main15a5be1d1e(8 first-parent commits past the merge-base, no changed file in common) and against feat(console): a 「⋯」 package menu in Studio's top bar; Import on Setup → Packages #37362178bfae911, feat(studio): a dashboard list's New opens the app's design mode on its dashboards #373686fbbdd9b30(each shares onlystudio/en.tsandstudio/zh.ts) and fix(app-shell): a new report from an app's reports list saves into the app's package, as a new view does #37357baa9e0e0fb(no shared file). Also clean against fix(studio): every retired pillar address lands on its new page in one redirect; the pillar-era code with no reader goes #373832322b40282(card Studio 重构(4-1):删掉分区路由和残留(:packageId/:tab 路由、AREA_PILLAR_FOR_TYPE、pillar 文案、旧 Studio 应用的菜单项) #36909, named in the claim), which sharesstudioMenuModel.tsandStudioDesignSurface.metadataArea-28561.test.tsx: whichever lands second re-runs on the merged tree.- A git-answerable read in the report: none seen.
- Outside the repository: the dev left
/build.pid(5 bytes) at the container's filesystem root; it is still there and is not in the diff.
5 · Out of scope, and Skills-docs
Skills-docs:not owed (Metadata-protocol: none, no narrowing arm). The report'sout_of_scope_findingsandopen_questionsare empty.- The changeset, read sentence by sentence against the diff: "Studio's 高级 Advanced fold lists a type only when the package holds one, so a new app showed no way to make its first email template, document, book, field mapping, seed data or AI context pack." — true, the card's six. "The fold now ends with one row under no group, 全部类型 All types, which opens the type directory." — true. "On a package that page lists the types the package holds, as before, and after them in each group every other type of the menu's six groups, marked None yet (zh: 还没有) with the word that says what can be done there; a tile opens the type's list, whose New makes the first item." — true, with N1 (order unpinned) and N4. "Types that cannot be made in Studio are listed as read-only, and Hide read-only drops them." — true. "The fold's own rule is unchanged: a 高级 type appears in it once the package holds one. The directory is the row's current page." — true. "New locale keys in the studio catalogue (en, zh): … No props or entry exports change." — true.
- For the seat's ACCEPT lines: N1 and N2 are follow-up candidates; N3 is the maintainer's two-minute check or a seat dogfood walk; N4 is accepted. The card's own "seen on the way" (no New for
agentandpicklist) is not part of this PR.
6 · 维护者速读, as the dev drafted it
- Line 1 (what changes) and line 2 (why): accurate.
- Line 3 (what if it goes wrong): accurate; the final version should add that the browser walk on a new empty app was not measured (N3).
- Line 4 (what is asked): accurate — the ADR line makes the PR governed; the final version cites the PASS record's comment id and the Head-sha.
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: PR #37380, card #37360, ruling A (comment 7177310364, the maintainer's words 「37360 同意」). Inputs: the card body and its four comments, the PR body, the 14-file net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
The implementing files agree with the line. Attempts to break it: a sweep still loading (the page draws nothing until it answers, so no type is marked early); a failed sweep (nothing listed or marked; pinned, red without the guard); No must-fix, no should-fix. N1 — "held first, then not-held, inside each group" is in the code ( Check-runs on the head, read 2026-11-26T00:57Z: 59 — 48 Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 维护者速读
Approval request at 2026-11-26T01:03Z. The seat's L1 reading is ACCEPT and the same-head contract review is PASS, both on head |
Fixes #37360
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Implements ruling A on #37360 (ruling record comment 7177310364, maintainer, verbatim: 「37360 同意」).
/studio/PKG/metadata), and on that page it is the current entry, so the fold opens by itself there without writing its cookie. A menu search lists it last when its name matches.~organd~alldraw no fold and no row. The row is not part ofbuildStudioMenu's groups, so the fold's rule does not change: a 高级 type is drawn when the package holds one, and appears there by itself once it does.scopeDirectoryEntriesrule is untouched, so the menu and the directory still agree on what a package holds) and, after them in each group, every other served type of the menu's six groups (directoryNotHeldEntries). Each of those is marked "None yet" / 「还没有」 in place of an item count, with the existing state word for what can be done there (read-only / can be customized / can be added / writable). A tile opens the type's list, which carries New. A failed diagnostics sweep says nothing about what the package holds, so then nothing is marked or added. The cross-package leg and Setup's directory list as before.engine.studio.menu.allTypes,engine.directory.notHeld,engine.directory.notHeldTitle,engine.directory.notHeldReadOnlyTitle. The palette's entry-icon map gains the new entry kind (the palette lists only the menu's groups, so it draws nothing new).Read first (by risk):
ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.tsx—directoryNotHeldEntriesand thenotHeldEntriesmemo (thediagErrorguard), and the tile's not-held badge.ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx—renderAllTypesinside the fold region, afterrenderGroups(tiers.advanced, 'advanced'), andcurrentIsAdvanced.ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts—studioMenuAllTypesEntryand the area-root branch ofstudioMenuCurrentKey.Tests
Pins (each ablated once, below):
StudioMenu.test.tsx› 全部类型 All types: the last link of the fold region, after everystudio-menu-advanced-group-*, inside nodata-sidebar="group"and under no group label; href/studio/PKG/metadata. Model pins instudioMenuModel.test.ts(package only; in no group of the menu or either tier).DirectoryPage.allTypes-37360.test.tsx: held types first with their counts and no mark; then each group's not-held types marked "None yet" with no count and the right state word (apiread-only,docaddable,email_templatewritable); a type outside the six groups and the hiddenfieldare never listed; a failed sweep marks nothing; the cross-package leg is unchanged.email_templatetile routes to/studio/PKG/metadata/email_template?package=PKG, where the real list page rendersmetadata-list-create.StudioMenu.test.tsx(rendered:email_templateandpositionserved, held by none, absent from the open fold while 全部类型 is there) andstudioMenuModel.test.ts(the shared rule plusbuildStudioMenu).Rewritten on purpose (each marked in place):
studioMenuModel.test.ts"nothing at the directory" → the directory's current entry isallTypes;StudioDesignSurface.metadataArea-28561.test.tsx"The directory is no one entry's page" → the current link isstudio-menu-entry-allTypes;metadataAreaHost.scope-28561.test.tsxkernel-package directory read "No matches" → it lists the kernel package's not-held types, scoped to it, URL unrepaired.Ablations (one per pin, each through
scripts/ablation-replace.mjs, anchor hit 1 → 0, blob changed, restored to the HEAD blob withgit diff HEADempty; tests import the source by relative path, so nodist/is involved):Unable to find an element by: [data-testid="studio-menu-entry-allTypes"]directoryNotHeldEntriesreturns nothingexpected [ 'hook', 'object' ] to deeply equal [ Array(5) ].hrefassertionalwayslist becomes every served typeexpected ... to be nullonstudio-menu-entry-type:email_templateReadings are in the details blocks under Verification.
Acceptance notes
.custompair (ADR-0146 D3), so the list can still make a first item.StudioPaletteGroups.tsx(one icon row, required by its typed map), and two test files whose pins described the old directory (StudioDesignSurface.metadataArea-28561.test.tsx,metadataAreaHost.scope-28561.test.tsx), each rewritten on purpose.Verification
Two-minute check: open Studio on a new, empty app, expand 「高级」 and click its last row 「全部类型」; expect every type under its group, e.g. 邮件模板 tile with 「还没有」 and 「可写」, and clicking it opens the empty email-template list with 「新建」.
All readings on head
45ed0a4bf5cunless noted.Affected package tests (narrowed, declared)
ui:pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/ packages/app-shell/src/views/metadata-admin/DirectoryPage packages/app-shell/src/views/metadata-admin/metadataAreaHost packages/i18n/on122de301019— Test Files 2 failed / 397 passed, Tests 2 failed / 4399 passed / 13 skipped: the two failures were the pins that described the old directory, rewritten on purpose in8c09070ce61.45ed0a4bf5cof those two files plus the three new-pin files: Test Files 5 passed (5), Tests 90 passed (90), lock VERDICT command-exit 0.uithat names the menu, the palette or the directory (22 files: the consoleAppContent.*landings,UnifiedSidebar.studioNoHome-12113,ResourceListPage.setupPosture-12606,check-i18n-call-site-keys, …) on45ed0a4bf5c: Test Files 22 passed (22), Tests 607 passed (607), lock VERDICT command-exit 0.@object-ui/app-shell's suite (about 2,000 files that import none of the changed modules) is left to CI's Test UI.Type check
pnpm --filter @object-ui/app-shell --filter @object-ui/i18n run type-checkon45ed0a4bf5c: bothDone, lock VERDICT command-exit 0. (The first run, before45ed0a4bf5c, was red on the palette's entry-icon map,TS2741 Property 'allTypes' is missing; fixed there.)Derived gate families
node scripts/pm/dispatch-gates.mjs --commandson45ed0a4bf5c: 48 commands, all run, each exit 0 (exit captured before any pipe), includingpnpm --dir ui exec vitest run scripts/(Test Files 172 passed / 2 skipped).--ranreconciliation: "48 derived famil(ies) accounted for — 48 run, 0 NOT-MEASURED (a DERIVED zero — all 48 recorded an exit code and none of them is 3)".node scripts/pm/overlap-check.mjson45ed0a4bf5c: origin/main merges cleanly; #37368 and #37362 (share the studio catalogues) merge cleanly; VERDICT clean exit 0.Ablations
Each through
node scripts/ablation-replace.mjs --file F --anchor A --replacement R -- (the pin's test, under the verify lock); every leg printed "ok mutation landed: anchor 1 -> 0" and "ok restored: blob == HEAD … andgit diff HEADis empty"; tree clean after (0 changed paths).StudioMenu.tsxrow render →{null}: Tests 1 failed —Unable to find an element by: [data-testid="studio-menu-entry-allTypes"].directoryNotHeldEntries→return []: Tests 1 failed —expected [ 'hook', 'object' ] to deeply equal [ Array(5) ].to={notHeld ? '.' : href}: Tests 1 failed — the tile'shrefassertion.studioMenuData.tsalways:→ every served type: Tests 1 failed —expected … to be null(the fold drewtype:email_template).Generated by Claude Code